package com.police.activity;

import com.police.R;
import com.police.util.UpdateAPK;

import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;


/**
 * 
 * @author yinxing
 *检测升级
 */
public class CheckUpgradeActivity extends BaseActivity{

	
	public String apkUrl = null;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.version);
		((TextView) findViewById(R.id.vermsg))
				.setText("检测到新版本" + " 正在下载安装包...");
		this.apkUrl = getIntent().getStringExtra("url");
		
			Log.e("url", getIntent().getStringExtra("url") + "");
			new UpdateAPK(CheckUpgradeActivity.this, this.apkUrl).check();
	

	}
}
